package org.jeecg.modules.monitoring.j_monitoring.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 虚拟机(管理)
 * @Author: xiaoyq
 * @Date:   2023-02-22
 * @Version: V1.0
 */
@Data
@TableName("m_gl_virtual_machine")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="虚拟机", description="虚拟机(管理)")
public class MGlVirtualMachine implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id;主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id;主键")
    private String id;
	/**虚拟机名称*/
	@Excel(name = "虚拟机名称", width = 15)
    @ApiModelProperty(value = "虚拟机名称")
    private String name;
	/**虚拟机状态*/
	@Excel(name = "虚拟机状态", width = 15, dicCode = "j_xnjzt")
	@Dict(dicCode = "j_xnjzt")
    @ApiModelProperty(value = "虚拟机状态")
    private String virtualMachineStatus;
	/**分配时间*/
	@Excel(name = "分配时间", width = 15)
    @ApiModelProperty(value = "分配时间")
    private String allocateTime;
	/**操作系统*/
	@Excel(name = "操作系统", width = 15)
    @ApiModelProperty(value = "操作系统")
    private String operatingSystem;
	/**系统IP*/
	@Excel(name = "系统IP", width = 15)
    @ApiModelProperty(value = "系统IP")
    private String systemIp;
	/**VCPU数量(个)*/
	@Excel(name = "VCPU数量(个)", width = 15)
    @ApiModelProperty(value = "VCPU数量(个)")
    private String vcpuNo;
	/**内存容量(G)*/
	@Excel(name = "内存容量(G)", width = 15)
    @ApiModelProperty(value = "内存容量(G)")
    private String memory;
	/**硬盘容量(G)*/
	@Excel(name = "已用空间(GB)", width = 15)
    @ApiModelProperty(value = "已用空间(GB)")
    private String hardDisk;
	/**系统盘容量(G)*/
//	@Excel(name = "系统盘容量(G)", width = 15)
//    @ApiModelProperty(value = "系统盘容量(G)")
//    private Integer systemDisk;
//	/**数据盘容量(G)*/
//	@Excel(name = "数据盘容量(G)", width = 15)
//    @ApiModelProperty(value = "数据盘容量(G)")
//    private Integer dataDisk;
	/**是否监测*/
	@Excel(name = "是否监测", width = 15, dicCode = "j_sfjc")
	@Dict(dicCode = "j_sfjc")
    @ApiModelProperty(value = "是否监测")
	private String whetherToMonitor;
	//不需要了
	/**宿主机IP*/
	//	@Excel(name = "宿主机IP", width = 15)
    @ApiModelProperty(value = "宿主机IP")
    private String virtualIp;

	/**所属集群*/
	@Excel(name = "所属集群", width = 15)
	@ApiModelProperty(value = "所属集群")
	private java.lang.String cluster;

	/**所属集群Id*/
	@ApiModelProperty(value = "所属集群Id")
	private String clusterId;

	/**关联应用*/
	@Excel(name = "关联应用", width = 15)
    @ApiModelProperty(value = "关联应用")
    private String associatedApplication;

	/**责任人*/
	@Excel(name = "责任人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@ApiModelProperty(value = "责任人")
	private String personLiable;

	@ApiModelProperty(value = "责任人id")
	private java.lang.String personLiableId;

	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
	private java.lang.String remarks;

	@TableField(exist = false)
	private String monitorStatus;

	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;

	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "更新时间")
	private java.util.Date updateTime;

	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private java.lang.String createBy;

	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private java.lang.String updateBy;

	@TableField(exist = false)
	private Boolean isMonitor = false;

	@TableField(exist = false)
	private String openStatus;

	@TableField(exist = false)
	private String cpu;

	@TableField(exist = false)
	private String allocationMem;

	@TableField(exist = false)
	private String allocationDisk;

}
